/*
 * Headers.h
 *
 *  Created on: Nov 22, 2009
 *      Author: abhishek
 */

#ifndef HEADERS_H_
#define HEADERS_H_

#include <vector>
#include <map>
#include <set>
#include <queue>
#include <math.h>
#include <string>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <sstream>
#include <utility>
#include <algorithm>
#include <stdio.h>


#define AMAZONDATAFILE  "/Users/abhishek/Documents/AI/CS322-Project/DataSet/TrainingSet.txt"
#define PAGERANKFILENAME  "/Users/abhishek/Documents/AI/CS322-Project/Output/PageRank.txt"


//#define INFLUENCEFILENAME  "/Users/abhishek/Documents/AI/CS322-Project/Output/influence.txt"
//#define FFILENAME "/Users/abhishek/Documents/AI/CS322-Project/Output/f.txt"
//#define GFILENAME "/Users/abhishek/Documents/AI/CS322-Project/Output/g.txt"
//#define PRICEFILENAME "/Users/abhishek/Documents/AI/CS322-Project/Output/price.txt"
//
//
//#define HEURISTIC1 "/Users/abhishek/Documents/AI/CS322-Project/Output/heuristic1.txt"
//#define HEURISTIC2 "/Users/abhishek/Documents/AI/CS322-Project/Output/heuristic2.txt"
//#define HEURISTIC3 "/Users/abhishek/Documents/AI/CS322-Project/Output/heuristic3.txt"


#define INFLUENCEFILENAME  "./Output/influence.txt"
#define FFILENAME "./Output/f.txt"
#define GFILENAME "./Output/g.txt"
#define PRICEFILENAME "./Output/price.txt"


#define HEURISTIC1 "./Output/heuristic1.txt"
#define HEURISTIC2 "./Output/heuristic2.txt"
#define HEURISTIC3 "./Output/heuristic3.txt"


#define PRICERANGE 1000
//#define NUMNODES 410236
//#define TOPK 10000
//#define NUMEDGES 3356824

#define NUMNODES 10000
#define TOPK 5
#define NUMEDGES 9



//#define EPSILON 1.0122

#define EPSILON 0.0001

#define MINPERCENTAGECHANGE 0.1

using namespace std ;

class Utils{
public:
	static void splitStringByComma(string str, vector<string>& stringVector, string delimiter ){
		  char * cstr, *p;
		  cstr = new char [str.size()+1];
		  strcpy (cstr, str.c_str());

		  p=strtok (cstr,delimiter.c_str());
		  while (p!=NULL)
		  {
			string temp(p);
			stringVector.push_back(temp);
		    p=strtok(NULL,delimiter.c_str());
		  }
	}
};



#endif /* HEADERS_H_ */
